//
// Pagination (multiple pages)
// --------------------------------------------------
.pagination {
  display: inline-block;
  padding-left: 0;
  // margin: $line-height-computed 0;
  border-radius: $border-radius-base;
  //chevron left and right
  > li {
    display: inline; // Remove list-style and block-level defaults
    > a,
    > span {
      position: relative;
      float: left; // Collapse white-space
      // padding: $padding-base-vertical $padding-base-horizontal;
      line-height: $line-height-base;
      text-decoration: none;
      color: $pagination-color;
      background-color: $pagination-bg;
      // border: 1px solid $pagination-border;
      margin-left: -1px;
      font:600 14px/36px $font-custom;
      width:34px;
      height:34px;
      text-align:center;
      margin: 0 5px;
      @media(max-width: 320px){
        margin: 0 3px;
      }
    }
    &:first-child {
      > a,
      > span {
        margin-left: 0;
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-family: ionicons;
        margin-right: 10px;
        cursor: pointer;
        display: inline-block;
      }
    }
    &:last-child {
      > a,
      > span {
        margin-left: 0;
        width: 34px;
        height: 34px;
        line-height: 34px;
        font-family: ionicons;
        margin-right: 10px;
        cursor: pointer;
        border: 1px solid #dddddd;
        display: inline-block;
      }
    }
  }

  > li > a,
  > li > span {
    &:hover,
    &:focus {
      z-index: 2;
      color: $pagination-hover-color;
      background-color: $pagination-hover-bg;
      border-color: $pagination-hover-border;
    }
  }

  > .active > a,
  > .active > span {
    &,
    &:hover,
    &:focus {
      z-index: 3;
      color: $pagination-active-color;
      background-color: $pagination-active-bg;
      border-color: $pagination-active-border;
      @include border-left-radius($border-radius-base);
      @include border-right-radius($border-radius-base);
      cursor: default;
    }
  }

  > .disabled {
    > span,
    > span:hover,
    > span:focus,
    > a,
    > a:hover,
    > a:focus {
      color: $pagination-disabled-color;
      background-color: $pagination-disabled-bg;
      border-color: $pagination-disabled-border;
      cursor: $cursor-disabled;
    }
  }
}

// Sizing
// --------------------------------------------------

// Large
.pagination-lg {
  @include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
}

// Small
.pagination-sm {
  @include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
}
